package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the PURCHASEDETAIL database table.
 * 
 */
@Entity
@NamedQuery(name="Purchasedetail.findAll", query="SELECT p FROM Purchasedetail p")
public class Purchasedetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PURCHASEDETAIL_PDID_GENERATOR", sequenceName="SEQ_37")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PURCHASEDETAIL_PDID_GENERATOR")
	@Column(name="PD_ID")
	private long pdId;

	@Column(name="GONG_ID")
	private String gongId;

	@Column(name="GONG_NAME")
	private String gongName;

	@Column(name="PD_MAN")
	private String pdMan;

	@Column(name="PD_NUMBER")
	private BigDecimal pdNumber;

	@Column(name="PD_PRICE")
	private BigDecimal pdPrice;

	@Column(name="PD_PUR_ID")
	private BigDecimal pdPurId;

	@Column(name="PRODUCT_ID")
	private BigDecimal productId;

	@Column(name="PRODUCT_NAME")
	private String productName;

	//bi-directional many-to-one association to PurchaseTb
	@ManyToOne
	@JoinColumn(name="PURCHASE_ID")
	private PurchaseTb purchaseTb;

	public Purchasedetail() {
	}

	public long getPdId() {
		return this.pdId;
	}

	public void setPdId(long pdId) {
		this.pdId = pdId;
	}

	public String getGongId() {
		return this.gongId;
	}

	public void setGongId(String gongId) {
		this.gongId = gongId;
	}

	public String getGongName() {
		return this.gongName;
	}

	public void setGongName(String gongName) {
		this.gongName = gongName;
	}

	public String getPdMan() {
		return this.pdMan;
	}

	public void setPdMan(String pdMan) {
		this.pdMan = pdMan;
	}

	public BigDecimal getPdNumber() {
		return this.pdNumber;
	}

	public void setPdNumber(BigDecimal pdNumber) {
		this.pdNumber = pdNumber;
	}

	public BigDecimal getPdPrice() {
		return this.pdPrice;
	}

	public void setPdPrice(BigDecimal pdPrice) {
		this.pdPrice = pdPrice;
	}

	public BigDecimal getPdPurId() {
		return this.pdPurId;
	}

	public void setPdPurId(BigDecimal pdPurId) {
		this.pdPurId = pdPurId;
	}

	public BigDecimal getProductId() {
		return this.productId;
	}

	public void setProductId(BigDecimal productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return this.productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public PurchaseTb getPurchaseTb() {
		return this.purchaseTb;
	}

	public void setPurchaseTb(PurchaseTb purchaseTb) {
		this.purchaseTb = purchaseTb;
	}

}